package com.t13;

/**
 * Created by xuyiwei on 2018/7/26.
 */
public class DatabaseException extends Exception {
    public DatabaseException(int transactionId, int queryId,String message){
        super(String.format("(f%d,t%d) %s",transactionId,queryId,message));
    }

    public static void main(String[] args) {
        try{
            throw new DatabaseException(3,4,"aaa");
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
}
